Component({

    properties: {
        params: {
            type : Object,
            value : {isshow:0}
        },
    },

    data: {
        showstatus : false,
    },
    ready() {
        var now = new Date().getTime();
        var cache =  wx.getStorageSync('suqra');
        if( (!cache || !cache.status || cache.expire < now) && this.data.params && this.data.params.isshow*1 == 1 ){
            this.setData({
                showstatus : true
            })
        }
    },
    methods: {
        closesub() {
            var now = new Date().getTime();
            var cache =  wx.setStorageSync('suqra',{status:1,expire:now+3600*24*1000});
            this.setData({
                showstatus : false,
            })
        },
        showqun(){
            this.setData({
                showqun : !this.data.showqun
            })
        },
        subqr(){
            this.setData({
                showqun : true
            })
        },
    }

})